import 'package:xreader/generated/json/base/json_convert_content.dart';
import 'package:xreader/dto/book_local_page_vo_entity.dart';
import 'package:xreader/model/t_book_entity.dart';


BookLocalPageVoEntity $BookLocalPageVoEntityFromJson(Map<String, dynamic> json) {
	final BookLocalPageVoEntity bookLocalPageVoEntity = BookLocalPageVoEntity();
	final int? p = jsonConvert.convert<int>(json['p']);
	if (p != null) {
		bookLocalPageVoEntity.p = p;
	}
	final List<TBookEntity>? datas = jsonConvert.convertListNotNull<TBookEntity>(json['datas']);
	if (datas != null) {
		bookLocalPageVoEntity.datas = datas;
	}
	return bookLocalPageVoEntity;
}

Map<String, dynamic> $BookLocalPageVoEntityToJson(BookLocalPageVoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['p'] = entity.p;
	data['datas'] =  entity.datas?.map((v) => v.toJson()).toList();
	return data;
}